from fdfs_client.client import Fdfs_client

if __name__ == '__main__':
    # 创建对象，读取配置
    client = Fdfs_client('client.conf')
    # 调用方法，完成上传
    ret = client.upload_by_filename('/home/python/Desktop/image/gun.jpg')
    print(ret)
